package com.subway.entity;

import java.io.Serializable;

/**
 * 地铁信息类
 */
public class SubWayInfo implements Serializable {
    private int id;
    private String subwayname;
    private String startstation;
    private String endstation;
    private int stationnum;
    private String starttime;
    private int price;

    @Override
    public String toString() {
        return "SubWayInfo{" +
                "id=" + id +
                ", subwayname='" + subwayname + '\'' +
                ", startstation='" + startstation + '\'' +
                ", endstation='" + endstation + '\'' +
                ", stationnum=" + stationnum +
                ", starttime='" + starttime + '\'' +
                ", price=" + price +
                '}';
    }

    public SubWayInfo() {
    }

    public SubWayInfo(int id, String subwayname, String startstation, String endstation, int stationnum, String starttime, int price) {
        this.id = id;
        this.subwayname = subwayname;
        this.startstation = startstation;
        this.endstation = endstation;
        this.stationnum = stationnum;
        this.starttime = starttime;
        this.price = price;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSubwayname() {
        return subwayname;
    }

    public void setSubwayname(String subwayname) {
        this.subwayname = subwayname;
    }

    public String getStartstation() {
        return startstation;
    }

    public void setStartstation(String startstation) {
        this.startstation = startstation;
    }

    public String getEndstation() {
        return endstation;
    }

    public void setEndstation(String endstation) {
        this.endstation = endstation;
    }

    public int getStationnum() {
        return stationnum;
    }

    public void setStationnum(int stationnum) {
        this.stationnum = stationnum;
    }

    public String getStarttime() {
        return starttime;
    }

    public void setStarttime(String starttime) {
        this.starttime = starttime;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }
}
